package com;
@FunctionalInterface
interface MiMi{
 String eat(String s);
}
public class FunctionTwo {
    public static void main(String[] args) {
        MiMi mimi = (x)->{
           return  "我要吃"+x;
        };
        MiMi mimi2 = new MiMi() {
            @Override
            public String eat(String s) {
               return  "我最爱"+s;
            }
        };
        System.out.println(mimi.eat("咪咪"));
        System.out.println(mimi2.eat("糖糖"));
    }
}
